package com.endava.Generics;

public class IntegerOperation implements NumberOperation<Integer> {

	/***/
	public boolean isOdd(Integer elem) {
		return elem % 2 != 0;
	}

	/***/
	public boolean isPrime(Integer number) {
		for (int i = 2; i < number; i++) {
			if (number % i == 0) {
				return false; // number is divisible so its not prime
			}
		}
		return true;

	}

}
